import request from '/@/utils/request';
const headers = {
	onlyData: true,
};
//新增会议
export const meetingAddApi = (data: any) => {
	return request({
		url: `/manage/eiReviewMeeting/saveReviewMeeting`,
		method: 'post',
		data,
		headers: {
			...headers,
			showSuccessMessage: true,
		},
	});
};
//新增会议-选择APP
export const meetingGetAppApi = (params: any) => {
	return request({
		url: `/manage/eiReviewMeeting/searchAppList`,
		method: 'get',
		params,
		headers: {
			...headers,
		},
	});
};
//分页查询
export const meetingPageApi = (params: any) => {
	return request({
		url: `/manage/eiReviewMeeting/searchReviewMeeting`,
		method: 'get',
		params,
		headers,
	});
};
//详情
export const meetingDetailApi = (params: any) => {
	return request({
		url: `/manage/eiReviewMeeting/getReviewMeetingDetail`,
		method: 'get',
		headers,
		params,
	});
};

//修改会议
export const meetingEditApi = (data: any) => {
	return request({
		url: `/manage/eiReviewMeeting/updateReviewMeeting`,
		method: 'post',
		data,
		headers: {
			...headers,
			showSuccessMessage: true,
		},
	});
};
//更换
export const meetingChangeApi = (data: any) => {
	return request({
		url: `/manage/eiReviewExtract/changeExtract`,
		method: 'post',
		data,
		headers: {
			...headers,
			showSuccessMessage: true,
		},
	});
};
//获取统计
export const meetingCountApi = (params: any) => {
	return request({
		url: `/manage/eiReviewExtract/attendanceConfirmationCount`,
		method: 'get',
		params,
		headers,
	});
};
// 确认参会
export const meetingSureApi = (data: any) => {
	return request({
		url: `/manage/eiReviewExtract/verifyAttend`,
		method: 'post',
		data,
		headers: {
			...headers,
			showSuccessMessage: true,
		},
	});
};
//专家删除
export const meetingDeleteApi = (params: any) => {
	return request({
		url: `/manage/eiReviewMeeting/delReviewMeeting`,
		method: 'DELETE',
		headers: {
			showSuccessMessage: true,
			onlyData: true,
		},
		params,
	});
};
